package cn.ktp.auth;

import java.io.IOException;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

@EnableDubbo
@SpringBootApplication
@EnableHystrix
@MapperScan(basePackages="cn.ktp.auth.dao")
public class KtpAuthProvider {
	public static void main(String[] args) throws IOException {
		new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(KtpAuthProvider.class).run(args);
        System.out.println("DemoService provider is starting...");
        System.in.read();
	}
}
